package com.example.adms.businessTrip.service;

import com.example.adms.businessTrip.dto.BusinessTripMsg;
import com.example.adms.businessTrip.dto.ExamineBusinessTrip;
import com.example.adms.businessTrip.dto.QueryBusinessTrip;
import com.example.adms.businessTrip.dto.businessTripReport;
import com.example.adms.businessTrip.entity.BusinessTrip;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyt
 * @since 2023-04-24
 */
public interface BusinessTripService extends IService<BusinessTrip> {

    int addBusinessTrip(BusinessTripMsg msg);

    Map<String, Object> getBusinessTripList(QueryBusinessTrip queryBusinessTrip);

    Map<String, Object> leaderGetLeaveList(QueryBusinessTrip queryBusinessTrip);

    Map<String, Object> employeeGetBusinessTripList(QueryBusinessTrip queryBusinessTrip);

    boolean examineBusinessTrip(ExamineBusinessTrip examineBusinessTrip);

    boolean deleteBusinessTrip(int businessTripId);

    List<Object> businessTripReport(businessTripReport report);
}
